package com.example.design.proxy.statical.specialty.realsubject;

import com.example.design.proxy.statical.specialty.subject.Specialty;

import javax.swing.*;
import java.awt.*;

/**
 * @Description 真实主题：土特产
 * @ClassName WySpecialty
 * @Author Yumuhui
 * @Date 2020/5/14 0:22
 * @Version 1.0.0
 */
public class LocalSpecialty extends JFrame implements Specialty {

    public LocalSpecialty() {
        super("代理土特产测试");
        this.setLayout(new GridLayout(1,1));
        JLabel l1=new JLabel(new ImageIcon("src/main/java/com/example/design/proxy/specialty/img/techan.jpg"));
        this.add(l1);
        this.pack();
        this.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
    }
    @Override
    public void display() {
        this.setVisible(true);
    }
}
